package com.cmw.controller.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * Created by Administrator on 2017-05-17.
 */
@Controller
public class ThymeleafController {
    /**
     * 返回html模板.
     */
    @RequestMapping(value = "/helloHtml",method = RequestMethod.GET)
    public String helloHtml(Map<String,Object> map){
        map.put("hello","from TemplateController.helloHtml");
        map.put("money",1000);
        map.put("name","程明卫Xv");
        map.put("leader","张攀");
        return "/helloHtml";
    }
}
